package com.collage.entity;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;

import java.math.BigDecimal;

/**
 * @author xiezz
 * @version 1.0
 * @date 2022/7/5
 */
@Data
public class Bill {
    /**
     * `id` varchar(64) NOT NULL COMMENT '主键',
     *   `aid` varchar(64) DEFAULT NULL COMMENT '活动id',
     *   `activities_name` varchar(255) DEFAULT NULL COMMENT '活动名称',
     *   `uid` varchar(64) DEFAULT NULL COMMENT '用户id',
     *   `user_name` varchar(255) DEFAULT NULL COMMENT '用户名称',
     *   `name` varchar(255) DEFAULT NULL COMMENT '消费物品名称',
     *   `price` decimal(10,2) DEFAULT NULL COMMENT '物品价格'
     */
    @ExcelIgnore
    @TableId(type = IdType.ASSIGN_UUID)
    private String id;
    @ExcelIgnore
    private String aid;
    @ExcelProperty(value = "活动名称", index = 0)
    private String activitiesName;
    @ExcelIgnore
    private String uid;
    @ExcelProperty(value = "姓名", index = 1)
    private String userName;
    @ExcelProperty(value = "物品", index = 2)
    private String name;
    @ExcelProperty(value = "价格", index = 3)
    private BigDecimal price;
}
